package com.ssm.service.impl;

import com.ssm.dao.DepartmentDAO;
import com.ssm.pojo.Department;
import com.ssm.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service("departmentService")
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentDAO departmentDAO;

    @Override
    public List<Department> queryList() {


        return  departmentDAO.queryList();
    }
}
